package com.lqwu.mallchatserver.chat.service;

import com.lqwu.mallchatserver.chat.model.dto.MemberReq;
import com.lqwu.mallchatserver.common.domain.vo.response.CursorPageBaseResp;
import com.lqwu.mallchatserver.user.model.dto.ChatMessageReq;
import com.lqwu.mallchatserver.websocket.model.vo.response.data.ChatMemberResp;

import java.util.List;

public interface ChatService {
    /**
     * 发送消息
     * @param chatMessageReq
     * @param uid
     */
    Long sendMsg(ChatMessageReq chatMessageReq, Long uid);

    /**
     * 游标分页获取群成员列表
     * @param request
     * @param memberUidList
     * @return
     */
    CursorPageBaseResp<ChatMemberResp> getMemberPage(MemberReq request, List<Long> memberUidList);
}
